<template>
	<view>
		<u-navbar :is-back="true" title="个人信息"></u-navbar>
		<view class="content">
			<view class="formBox">
				<view class="title">
					基本信息
				</view>
				<view>
					<view class="label">
						所属门店：<span>{{ userInfo.storeName }}</span>
					</view>
					<view class="label">
						姓名：<span>{{ userInfo.nickName }}</span>
					</view>
					<view class="label">
						联系电话：<span>{{ userInfo.phonenumber }}</span>
					</view>
					<view class="label">
						登录账号：<span>{{ userInfo.userName }}</span>
					</view>
					<view class="label">
						角色：<span>{{ userInfo.roleName }}</span>
					</view>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		computed: {
			userInfo() {
				return this.$store.state.userInfo;
			}

		},
	}
</script>

<style lang="less">
	.content {
		font-family: PingFang SC, PingFang SC-Bold;
		width: 100%;
		min-height: 100vh;
		background-color: #ededed;
		padding-top: 20rpx;
		padding-bottom: 20rpx;

		.formBox {
			width: 660rpx;
			padding: 15rpx 24rpx;
			margin-top: 0;
			margin-bottom: 20rpx;

			.title {
				font-size: 28rpx;
				color: #333;
				line-height: 65rpx;
				border-bottom: none;
			}

			.title:before {
				position: relative;
				top: 4rpx;
				content: "";
				display: inline-block;
				width: 8rpx;
				height: 25rpx;
				background: #177fff;
				border-radius: 4px;
				margin-right: 10rpx;
			}

			.label {
				font-size: 28rpx;
				color: #999;
				line-height: 54rpx;

				span {
					color: #333;
				}
			}
		}

		.formBox:last-child {
			margin-bottom: 0;
		}
	}
</style>
